<!--************************************************************************************************-->
<!-- < groupList.php >                                                                              -->
<!-- Copyright (c) 2012-2013 San Yat-sun University School of Software                              -->
<!-- Founder : Xiaofen Huang                                                                        -->
<!-- Stu : 10389169                                                                                 -->
<!-- Destription : 主页上的最新小组进来之后小组列表                                                 -->
<!-- Version : 2.1                                                                                  -->
<!--************************************************************************************************-->


<!DOCTYPE html>

<?php
	include_once("header.php");
	//include_once("bottom.php");
	include_once("../manager/GroupManager.php");
	$groups = GroupManager::getInstance()->getGroupList(5);
?>
<html lang="zh-hk">
<head>

	<title>Tiny bOOk</title>
	
	<meta http-equiv="Content-Type" content="text/html charset=UTF-8">
	<meta name="contentType" value="text/html  charset=GBK">
	<meta name="description" content="在这里你可以看到最新发布的书籍，和好友共享对某本书的评论和笔记">
	<meta http-equiv="imagetoolbar" content="no">
	<meta name="viewport" content="width=1036">
	
	<link rel="stylesheet" type="text/css" href="../css/groupList.css">
</head>
<body>

	<div id="left"><!-- 显示小组列表-->
	<?php
	
	while($group = mysql_fetch_array($groups))
	{
		$group_name = $group['Groupname'];	
		$group_img = GroupManager::getInstance()->getImageByGroupname($group_name);
	?>
		<div id="group">
			<a href="groupPage.php?group_name=<?=$group_name?>" >
				<img src= <?=$group_img?> alt="not found"/>
			</a>
			<div id="intro">
				<span><a href="groupPage.php?group_name=<?=$group_name?>"><?=$group_name?></a></span>
				<p><span>创建人:</span><?=$group['ManagerName']?>
				<pre><?=$group['GroupBrief']?><pre>
			</div>
		</div><!--end of group list-->
	<?php
	}
	?>
	</div><!--end of left-->
		
</body>
</html>